// 函数式组件
// 特点：无状态(即无生命周期)
import { h, renderSlot } from "vue"; 
// 导入uniapp原生的标签 view text啥的
const DynamicHeading = (props, context) => {
  // console.log(context.attrs, "attrs标签值");
  return h(`view`, { ...context.attrs, class: "statusView" }, [
    renderSlot(context.slots, "default"),
    h("div", {}, context.slots, "张三"),
  ]);
};

DynamicHeading.props = ["level"];

export default DynamicHeading;
